package cn.edu.ujn.dao;

import java.math.BigDecimal;
import java.util.Date;

public class PaymentInfo {
    private int paymentId; // 支付记录的唯一标识
    private int recordId; // 关联的停车记录 ID
    private String paymentMethod; // 支付方式（现金、信用卡、移动支付等）
    private String paymentStatus; // 支付状态（待处理、已完成等）
    private BigDecimal amount; // 支付金额
    private Date paymentTime; // 支付时间

    // 构造方法
    public PaymentInfo() {}

    public PaymentInfo(int paymentId, int recordId, String paymentMethod, String paymentStatus, BigDecimal amount, Date paymentTime) {
        this.paymentId = paymentId;
        this.recordId = recordId;
        this.paymentMethod = paymentMethod;
        this.paymentStatus = paymentStatus;
        this.amount = amount;
        this.paymentTime = paymentTime;
    }

    // Getter 和 Setter 方法
    public int getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(int paymentId) {
        this.paymentId = paymentId;
    }

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(String paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    // Optional: toString 方法用于调试
    @Override
    public String toString() {
        return "PaymentInfo{" +
                "paymentId=" + paymentId +
                ", recordId=" + recordId +
                ", paymentMethod='" + paymentMethod + '\'' +
                ", paymentStatus='" + paymentStatus + '\'' +
                ", amount=" + amount +
                ", paymentTime=" + paymentTime +
                '}';
    }
}
